package ru.common.hibernate;

import org.hibernate.Session;


public class EntityHolder<E> implements HibernateAction<E> {
    
    private final E entity;

    public EntityHolder(E entity) {
        this.entity = entity;
    }

    @Override
    public E execute(Session session) {
        return entity;
    }

}
